//
//  KDBodyView.h
//  PublicSentimentMonitorSystem
//
//  Created by 魏强 on 15/6/9.
//  Copyright (c) 2015年 魏强. All rights reserved.
//

#import <UIKit/UIKit.h>
@class KDBodyViewModel;
@class KDHomeThemeLinkModel;
@protocol KDBodyViewDelegate;
@class KDHomeListPageCellModel;
@class KDHomeThemeModel;
@interface KDBodyView : UIView
@property (nonatomic, assign, getter=isHasDetail) BOOL hasDetail;
@property (nonatomic, strong) KDHomeThemeLinkModel *model;
@property (nonatomic, weak) id<KDBodyViewDelegate> delegate;
/**
 *  当前的主题模型
 */
@property (nonatomic, strong) KDHomeThemeModel *homeThemeModel;
+ (instancetype)bodyViewWithFrame:(CGRect)frame;
@end

@protocol KDBodyViewDelegate <NSObject>
/**
 *  tableView被电击了
 */
- (void)KDBodyView :(KDBodyView*)bodyView WithKKDHomeListPageCellModel:(KDHomeListPageCellModel *)model didSelectRowAtIndexPath:(NSIndexPath *)indexPath;
/**
 *  上报按钮被电击了
 */
- (void)KDBodyView:(KDBodyView *)bodyView WithKDHomeListPageCellModel:(KDHomeListPageCellModel *)model;
/**
 *  上报按钮被电击了
 */
- (void)KDBodyView:(KDBodyView *)bodyView relationBtnClickWithModel:(KDHomeListPageCellModel *)model;
- (void)bodyViewDidLoginedByOther:(KDBodyView *)bodyView;
@end